package com.example.blog.respository;

import com.example.blog.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserRepository extends JpaRepository <User,Long>{
    User findByUsernameAndPassword(String username,String password);
    User findByAvatar(String avatar);
    User findByNickname(String nickname);

}
